Now we return e.g.:
array( 'Cite', 'LiquidThreads' );
Instead return:
array(
'Cite' => null,
'LiquidThreads' => $some_config
);
Where $some_config is a yet-to-be determined configuration. It's
intended for e.g. sourcing SQL tables that the extension needs.
$dh = opendir( $dir );
while ( ( $file = readdir( $dh ) ) !== false ) {
if( file_exists( "$dir/$file/$file.php" ) ) {
- $exts[] = $file;
+ $exts[$file] = null;
}
}
$this->setVar( '_Extensions', $exts );
$extensions = $this->parent->findExtensions();
if( $extensions ) {
$extHtml = $this->parent->getFieldsetStart( 'config-extensions' );
- foreach( $extensions as $ext ) {
+ foreach( array_keys($extensions) as $ext ) {
$extHtml .= $this->parent->getCheckBox( array(
'var' => "ext-$ext",
'rawtext' => $ext,