Page MenuHomePhabricator

Remove and replace $wgContLang in extensions under the social tools umbrella
Open, Needs TriagePublic

Description

BlogPage

BlogPageClass.php:              global $wgContLang;
BlogPageClass.php:              $categoryName = $wgContLang->getNsText( NS_CATEGORY );
BlogPageClass.php:              global $wgContLang;
BlogPageClass.php:                      $videoNS = $wgContLang->getNsText( NS_VIDEO );
BlogPageClass.php:              $localizedCategoryNS = $wgContLang->getNsText( NS_CATEGORY );
SpecialArticlesHome.php:                global $wgContLang;
SpecialArticlesHome.php:                $today = $wgContLang->date( wfTimestampNow() );
SpecialArticlesHome.php:                global $wgContLang;
SpecialArticlesHome.php:                $today = $wgContLang->date( wfTimestampNow() ); // originally date( 'F j, Y', time() )
SpecialArticlesHome.php:                        $dateString = $wgContLang->date( wfTimestamp( TS_MW, $timeAgo ) );
SpecialCreateBlogPost.php:              global $wgContLang;
SpecialCreateBlogPost.php:                      $localizedCatNS = $wgContLang->getNsText( NS_CATEGORY );
SpecialCreateBlogPost.php:                      $today = $wgContLang->date( wfTimestampNow() );

FanBoxes

FanBoxClass.php:                global $wgUser, $wgContLang;
FanBoxClass.php:                                        $wgContLang->getNsText( NS_CATEGORY ) . ':' .
FanBoxClass.php:                global $wgUser, $wgContLang;
FanBoxClass.php:                $ctg .= '[[' . $wgContLang->getNsText( NS_CATEGORY ) . ':' .
FanBoxClass.php:                global $wgMemc, $wgContLang;
FanBoxClass.php:                                $categories_wiki .= '[[' . $wgContLang->getNsText( NS_CATEGORY ) .
FanBoxHooks.php:                global $wgContLang;
FanBoxHooks.php:                $fantitle = $wgContLang->getNsText( NS_FANTAG );

PictureGame

AjaxUploadForm.php:      * What was changed here: $wgRequest & $wgContLang were added as globals,
AjaxUploadForm.php:             global $wgContLang;
AjaxUploadForm.php:             $categoryText = '[[' . $wgContLang->getNsText( NS_CATEGORY ) . ':' .

PollNY

PollClass.php:                  global $wgContLang;
PollClass.php:                  return $wgContLang->getNsText( NS_POLL ) . ':'. $pollPage->getDBkey();
SpecialCreatePoll.php:          global $wgMemc, $wgContLang;
SpecialCreatePoll.php:                  $localizedCategoryNS = $wgContLang->getNsText( NS_CATEGORY );

QuestionGame

QuestionGameUpload.php:  * What was changed here: $wgContLang was added as a global,
QuestionGameUpload.php:         global $wgContLang;
QuestionGameUpload.php:         $localizedNS = $wgContLang->getNsText( NS_CATEGORY );

SocialProfile

UserStats/GenerateTopUsersReport.php:           global $wgContLang, $wgUser;
UserStats/GenerateTopUsersReport.php:                   $period_title = $wgContLang->date( wfTimestamp( TS_MW, strtotime( '-1 week' ) ) ) .
UserStats/GenerateTopUsersReport.php:                           '-' . $wgContLang->date( wfTimestampNow() );
UserStats/GenerateTopUsersReport.php:                   $period_title = $wgContLang->getMonthName( $date['mon'] ) .
UserStats/GenerateTopUsersReport.php:                   $localizedUserNS = $wgContLang->getNsText( NS_USER );
UserStats/GenerateTopUsersReport.php:                   $wgContLang->formatNum( $wgUserStatsPointValues["points_winner_{$period}"] )
UserStats/GenerateTopUsersReport.php:                   $wgContLang->formatNum( $user_count ) )->inContentLanguage()->parse() . "==\n\n";
UserStats/GenerateTopUsersReport.php:                           $wgContLang->formatNum( $user['rank'] ),
UserStats/GenerateTopUsersReport.php:                           $wgContLang->formatNum( $user['points'] )
UserStats/GenerateTopUsersReport.php:                           $wgContLang->formatNum( $user['points'] )

Video

VideoHooks.php:         global $wgContLang;
VideoHooks.php:         $localizedVideoName = $wgContLang->getNsText( NS_VIDEO );

Event Timeline

SamanthaNguyen renamed this task from Remove $wgContLang in extensions under the social tools umbrella to Remove and replace $wgContLang in extensions under the social tools umbrella.Mar 18 2017, 3:53 AM