diff options
author | Andreas Gohr <andi@splitbrain.org> | 2014-05-25 11:36:55 +0200 |
---|---|---|
committer | Andreas Gohr <andi@splitbrain.org> | 2014-05-25 11:36:55 +0200 |
commit | ef11fcfcd6213789fb126766301a6ffaf8f83055 (patch) | |
tree | d1bcc9c08f5e55c830b8d47aa1efad4b53845571 /inc/pageutils.php | |
parent | 6c0879f6b25dd03183827bdda461ceb599eb939a (diff) | |
download | rpg-ef11fcfcd6213789fb126766301a6ffaf8f83055.tar.gz rpg-ef11fcfcd6213789fb126766301a6ffaf8f83055.tar.bz2 |
revert return of getNS to false again
Diffstat (limited to 'inc/pageutils.php')
-rw-r--r-- | inc/pageutils.php | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/inc/pageutils.php b/inc/pageutils.php index 79b703ddc..5f62926e4 100644 --- a/inc/pageutils.php +++ b/inc/pageutils.php @@ -152,14 +152,14 @@ function cleanID($raw_id,$ascii=false){ * @author Andreas Gohr <andi@splitbrain.org> * * @param string $id - * @return string + * @return string|bool the namespace part or false if the given ID has no namespace (root) */ function getNS($id){ $pos = strrpos((string)$id,':'); if($pos!==false){ return substr((string)$id,0,$pos); } - return ''; + return false; } /** |