~ubuntu-branches/ubuntu/saucy/mediawiki-extensions/saucy

« back to all changes in this revision

Viewing changes to debian/etc/extensions.php

  • Committer: Bazaar Package Importer
  • Author(s): Romain Beauxis
  • Date: 2010-05-04 15:13:35 UTC
  • mfrom: (0.1.1 experimental)
  • Revision ID: james.westby@ubuntu.com-20100504151335-54qeucg3ec108q28
Tags: 2.2
* Added Replaces:/Conflicts: to allow a proper upgrade.
Closes: #580066
* Fixed package descriptions.
Closes: #579667
* Patched mediawiki-extensions-fckeditor to make it work with
  php 5.3. The fix may not be perfect but at least it work.
  Not closing the bug (#579822) for now..

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
1
<?php
2
2
 
3
 
// Set new include path:
4
 
ini_set( "include_path" ,ini_get( 'include_path' ) . PATH_SEPARATOR . '/usr/share/mediawiki-extensions/include' );
 
3
// Include base functions
 
4
include( '/usr/share/mediawiki-extensions/base/ExtensionFunctions.php' ) ;
5
5
 
6
6
$mw_debian_extensions_dir = "/etc/mediawiki-extensions/extensions-enabled";
7
7
 
10
10
   &&
11
11
     $dh = opendir( $mw_debian_extensions_dir ) ) {
12
12
        while ( ( $file = readdir( $dh ) ) !== false ) {
13
 
            if ( preg_match( "/.php$/",$file ) && is_readable($mw_debian_extensions_dir . DIRECTORY_SEPARATOR . $file) ) {
14
 
                include_once( $mw_debian_extensions_dir . DIRECTORY_SEPARATOR . $file );
 
13
            $absolute_file = $mw_debian_extensions_dir . DIRECTORY_SEPARATOR . $file ;
 
14
            if ( preg_match( "/.php$/",$file ) && file_exists( $absolute_file ) &&
 
15
                 is_readable( $absolute_file ) ) {
 
16
                include_once( $absolute_file );
15
17
            }
16
18
        }
17
19
        closedir( $dh );