Index: trunk/extensions/SelectCategory/SelectCategoryFunctions.php |
— | — | @@ -18,7 +18,7 @@ |
19 | 19 | } |
20 | 20 | |
21 | 21 | ## Entry point for the hook and main worker function for editing the page: |
22 | | -function fnSelectCategoryShowHook( $m_isUpload = false, &$m_pageObj ) { |
| 22 | +function fnSelectCategoryShowHook( $m_isUpload = false, $m_pageObj ) { |
23 | 23 | |
24 | 24 | # check if we should do anything or sleep |
25 | 25 | if ( fnSelectCategoryCheckConditions( $m_isUpload, $m_pageObj ) ) { |
— | — | @@ -116,7 +116,7 @@ |
117 | 117 | } |
118 | 118 | |
119 | 119 | ## Entry point for the hook and main worker function for saving the page: |
120 | | -function fnSelectCategorySaveHook( $m_isUpload, &$m_pageObj ) { |
| 120 | +function fnSelectCategorySaveHook( $m_isUpload, $m_pageObj ) { |
121 | 121 | global $wgContLang; |
122 | 122 | global $wgTitle; |
123 | 123 | |
— | — | @@ -128,7 +128,7 @@ |
129 | 129 | |
130 | 130 | # default sort key is page name with stripped namespace name, |
131 | 131 | # otherwise sorting is ugly. |
132 | | - if ($wgTitle->getNamespace() == NS_MAIN) { |
| 132 | + if( $wgTitle->getNamespace() == NS_MAIN ) { |
133 | 133 | $default_sortkey = ""; |
134 | 134 | } else { |
135 | 135 | $default_sortkey = "|{{PAGENAME}}"; |
— | — | @@ -175,7 +175,7 @@ |
176 | 176 | $m_allCats = array(); |
177 | 177 | |
178 | 178 | # Get a database object: |
179 | | - $m_dbObj =& wfGetDB( DB_SLAVE ); |
| 179 | + $m_dbObj = wfGetDB( DB_SLAVE ); |
180 | 180 | # Get table names to access them in SQL query: |
181 | 181 | $m_tblCatLink = $m_dbObj->tableName( 'categorylinks' ); |
182 | 182 | $m_tblPage = $m_dbObj->tableName( 'page' ); |
— | — | @@ -206,7 +206,7 @@ |
207 | 207 | $m_allCats = array(); |
208 | 208 | |
209 | 209 | # Get a database object: |
210 | | - $m_dbObj =& wfGetDB( DB_SLAVE ); |
| 210 | + $m_dbObj = wfGetDB( DB_SLAVE ); |
211 | 211 | # Get table names to access them in SQL query: |
212 | 212 | $m_tblCatLink = $m_dbObj->tableName( 'categorylinks' ); |
213 | 213 | $m_tblPage = $m_dbObj->tableName( 'page' ); |
— | — | @@ -284,7 +284,7 @@ |
285 | 285 | } |
286 | 286 | |
287 | 287 | # Function that checks if we meet the run conditions of the extension |
288 | | -function fnSelectCategoryCheckConditions ($m_isUpload, &$m_pageObj ) { |
| 288 | +function fnSelectCategoryCheckConditions ($m_isUpload, $m_pageObj ) { |
289 | 289 | global $wgSelectCategoryNamespaces; |
290 | 290 | global $wgSelectCategoryEnableSubpages; |
291 | 291 | global $wgTitle; |
— | — | @@ -299,7 +299,7 @@ |
300 | 300 | } |
301 | 301 | |
302 | 302 | $ns = $wgTitle->getNamespace(); |
303 | | - if (array_key_exists ($ns, $wgSelectCategoryNamespaces)) { |
| 303 | + if( array_key_exists( $ns, $wgSelectCategoryNamespaces ) ) { |
304 | 304 | $enabledForNamespace = $wgSelectCategoryNamespaces[$ns]; |
305 | 305 | } else { |
306 | 306 | $enabledForNamespace = false; |
Property changes on: trunk/extensions/SelectCategory |
___________________________________________________________________ |
Added: svn:mergeinfo |
307 | 307 | Merged /branches/REL1_16/extensions/SelectCategory/SelectCategory:r75959 |
308 | 308 | Merged /branches/REL1_16/extensions/SelectCategory:r62820-75960 |