https://www.mediawiki.org/wiki/Special:Code/MediaWiki/114057

Revision: 114057
Author:   reedy
Date:     2012-03-17 17:19:18 +0000 (Sat, 17 Mar 2012)
Log Message:
-----------
Use more normal $dir code, remove duplicate loading of same file as it's going 
to give errors

Modified Paths:
--------------
    trunk/extensions/LiquidThreads/classes/Hooks.php

Modified: trunk/extensions/LiquidThreads/classes/Hooks.php
===================================================================
--- trunk/extensions/LiquidThreads/classes/Hooks.php    2012-03-17 16:26:30 UTC 
(rev 114056)
+++ trunk/extensions/LiquidThreads/classes/Hooks.php    2012-03-17 17:19:18 UTC 
(rev 114057)
@@ -338,10 +338,9 @@
         * @return bool
         */
        public static function onLoadExtensionSchemaUpdates( $updater = null ) {
-               $dir = realpath( dirname( __FILE__ ) . '/..' );
+               $dir = dirname( __FILE__ );
 
                $updater->addExtensionUpdate( array( 'addTable', 'thread', 
"$dir/lqt.sql", true ) );
-               $updater->addExtensionUpdate( array( 'addTable', 
'user_message_state', "$dir/lqt.sql", true ) );
                $updater->addExtensionUpdate( array( 'addTable', 
'thread_history', "$dir/schema-changes/thread_history_table.sql", true ) );
                $updater->addExtensionUpdate( array( 'addTable', 
'thread_pending_relationship', 
"$dir/schema-changes/thread_pending_relationship.sql", true ) );
                $updater->addExtensionUpdate( array( 'addTable', 
'thread_reaction', "$dir/schema-changes/thread_reactions.sql", true ) );


_______________________________________________
MediaWiki-CVS mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/mediawiki-cvs

Reply via email to