Index: trunk/extensions/Configure/Configure.api.php |
— | — | @@ -103,6 +103,7 @@ |
104 | 104 | $conf = ConfigurationSettings::singleton( CONF_SETTINGS_EXT ); |
105 | 105 | $ret = array(); |
106 | 106 | foreach ( $conf->getAllExtensionsObjects() as $ext ) { |
| 107 | + if( !$ext->isInstalled() ) continue; // must exist |
107 | 108 | $extArr = array(); |
108 | 109 | $extArr['name'] = $ext->getName(); |
109 | 110 | if ( $ext->isActivated() ) |
Index: trunk/extensions/Configure/findSettings.php |
— | — | @@ -69,6 +69,7 @@ |
70 | 70 | 'wgTitleBlacklist', |
71 | 71 | ); |
72 | 72 | foreach ( $exts as $ext ) { |
| 73 | + if( !$ext->isInstalled() ) continue; // must exist |
73 | 74 | $file = file_get_contents( $ext->getFile() ); |
74 | 75 | $name = $ext->getName(); |
75 | 76 | $m = array(); |
Index: trunk/extensions/Configure/Configure.settings.php |
— | — | @@ -68,9 +68,9 @@ |
69 | 69 | usort( $extensions, array( __CLASS__, 'compExt' ) ); |
70 | 70 | foreach( $extensions as $ext ) { |
71 | 71 | $ext = new WebExtension( $ext ); |
72 | | - if( $ext->isInstalled() ) { |
| 72 | + #if( $ext->isInstalled() ) { |
73 | 73 | $list[] = $ext; |
74 | | - } |
| 74 | + #} |
75 | 75 | } |
76 | 76 | wfProfileOut( __METHOD__ ); |
77 | 77 | return $list; |
Index: trunk/extensions/Configure/SpecialExtensions.php |
— | — | @@ -61,6 +61,7 @@ |
62 | 62 | return array(); |
63 | 63 | $arr = array(); |
64 | 64 | foreach ( $this->mConfSettings->getAllExtensionsObjects() as $ext ) { |
| 65 | + if( !$ext->isInstalled() ) continue; // must exist |
65 | 66 | if ( $ext->useVariable() ) |
66 | 67 | continue; |
67 | 68 | if ( $wgRequest->getCheck( $ext->getCheckName() ) ) |
— | — | @@ -92,6 +93,7 @@ |
93 | 94 | $ret = ''; |
94 | 95 | $globalDone = false; |
95 | 96 | foreach ( $this->mConfSettings->getAllExtensionsObjects() as $ext ) { |
| 97 | + if( !$ext->isInstalled() ) continue; // must exist |
96 | 98 | $settings = $ext->getSettings(); |
97 | 99 | foreach ( $settings as $setting => $type ) { |
98 | 100 | if ( !isset( $GLOBALS[$setting] ) && !isset( $this->conf[$setting] ) && file_exists( $ext->getFile() ) ) { |