Fix preference page with customer ImageSize plugin
As noted in the code, this was getting loaded in a rather special way.
This commit is contained in:
parent
693f1f6e51
commit
4a7f3ea001
|
@ -1,5 +1,9 @@
|
||||||
<?php
|
<?php
|
||||||
|
|
||||||
|
// this is not getting loaded by autloading since it has a classname
|
||||||
|
// that makes it clash with how zf1 expects to load plugins.
|
||||||
|
require_once 'customfilters/ImageSize.php';
|
||||||
|
|
||||||
class Application_Form_GeneralPreferences extends Zend_Form_SubForm
|
class Application_Form_GeneralPreferences extends Zend_Form_SubForm
|
||||||
{
|
{
|
||||||
|
|
||||||
|
|
|
@ -1,4 +1,14 @@
|
||||||
<?php
|
<?php
|
||||||
|
/**
|
||||||
|
* custom filter for image uploads
|
||||||
|
*
|
||||||
|
* WARNING: you need to include this file directly when using it, it clashes with the
|
||||||
|
* way zf1 Zend_Loader_PluginLoader expects it to be found. Another way around this
|
||||||
|
* might be to rename the class and have the new name get loaded proper.
|
||||||
|
*
|
||||||
|
* Since this is only getting used on the GeneralPreferences form I am re-adding the
|
||||||
|
* require_once over there to get this fixed for now.
|
||||||
|
*/
|
||||||
|
|
||||||
class Zend_Filter_ImageSize implements Zend_Filter_Interface
|
class Zend_Filter_ImageSize implements Zend_Filter_Interface
|
||||||
{
|
{
|
||||||
|
|
Loading…
Reference in New Issue