* (bug 10636) Update Thai translation
[lhc/web/wiklou.git] / includes / ExternalStore.php
index 71c4aaa..5efc6e2 100644 (file)
@@ -1,7 +1,6 @@
 <?php
 /**
  *
- * @package MediaWiki
  *
  * Constructor class for data kept in external repositories
  *
@@ -42,10 +41,9 @@ class ExternalStore {
                        return false;
 
                $class='ExternalStore'.ucfirst($proto);
-               /* Preloaded modules might exist, especially ones serving multiple protocols */
+               /* Any custom modules should be added to $wgAutoLoadClasses for on-demand loading */
                if (!class_exists($class)) {
-                       if (!include_once($class.'.php'))
-                               return false;
+                       return false;
                }
                $store=new $class();
                return $store;
@@ -53,8 +51,8 @@ class ExternalStore {
 
        /**
         * Store a data item to an external store, identified by a partial URL
-        * The protocol part is used to identify the class, the rest is passed to the 
-        * class itself as a parameter. 
+        * The protocol part is used to identify the class, the rest is passed to the
+        * class itself as a parameter.
         * Returns the URL of the stored data item, or false on error
         */
        function insert( $url, $data ) {
@@ -67,4 +65,4 @@ class ExternalStore {
                }
        }
 }
-?>
+