diff --git a/includes/Extension.php b/includes/Extension.php index 83e35c0..9550bb7 100644 --- a/includes/Extension.php +++ b/includes/Extension.php @@ -76,7 +76,7 @@ class Extension { public static function processPage( \Title $title, \RequestContext $context ) { $config = new Config(); $source = Source::createFromTitle( $title, $config ); - if ( $source->hasContent ) { + if ( $source->hasContent() ) { $linker = new Linker( $config ); $result = $linker->linkContent( $source ); if ( $result ) { diff --git a/includes/Source.php b/includes/Source.php index b6d97c2..e44962b 100644 --- a/includes/Source.php +++ b/includes/Source.php @@ -197,7 +197,7 @@ class Source { * @return boolean True if the source page has content. */ public function hasContent() { - return $this->content != null; + return $this->getContent() != null; } /** diff --git a/linktitles-cli.php b/linktitles-cli.php index 535589f..fdb7f02 100755 --- a/linktitles-cli.php +++ b/linktitles-cli.php @@ -155,7 +155,7 @@ class Cli extends \Maintenance { // Retrieve page names from the database. $dbr = $this->getDB( DB_SLAVE ); - $namespacesClause = str_replace( '_', ' ','(' . implode( ', ', $config->namespaces ) . ')' ); + $namespacesClause = str_replace( '_', ' ','(' . implode( ', ', $config->sourceNamespaces ) . ')' ); $res = $dbr->select( 'page', array( 'page_title', 'page_namespace' ),