Version 5.0.0 beta 8
This commit is contained in:
1 parent
54d5dcd0a0
commit
214f649f1d
483 files changed
+35354
-33568
No files matched your search
@@ -1653,12 +1653,13 @@ abstract class Content extends ActiveRecord
|
||||
* Indefinite Article
|
||||
*
|
||||
* @param Lang|null $lang The language to use, or NULL for the language of the currently logged in member
|
||||
* @param array $options
|
||||
* @return string
|
||||
*/
|
||||
public function indefiniteArticle( ?Lang $lang = NULL ): string
|
||||
public function indefiniteArticle( ?Lang $lang = NULL, array $options=array() ): string
|
||||
{
|
||||
$container = ( $this instanceof Comment ) ? $this->item()->containerWrapper() : $this->containerWrapper();
|
||||
return static::_indefiniteArticle( $container ? $container->_data : array(), $lang );
|
||||
return static::_indefiniteArticle( $container ? $container->_data : array(), $lang, $options );
|
||||
}
|
||||
|
||||
/**
|
||||
@@ -1666,12 +1667,13 @@ abstract class Content extends ActiveRecord
|
||||
*
|
||||
* @param array|null $containerData Container data
|
||||
* @param Lang|null $lang The language to use, or NULL for the language of the currently logged in member
|
||||
* @param array $options
|
||||
* @return string
|
||||
*/
|
||||
public static function _indefiniteArticle( ?array $containerData = NULL, ?Lang $lang = NULL ): string
|
||||
public static function _indefiniteArticle( ?array $containerData = NULL, ?Lang $lang = NULL, array $options=array() ): string
|
||||
{
|
||||
$lang = $lang ?: Member::loggedIn()->language();
|
||||
return $lang->addToStack( '__indefart_' . static::$title, FALSE );
|
||||
return $lang->addToStack( '__indefart_' . static::$title, FALSE, $options );
|
||||
}
|
||||
|
||||
/**
|
||||
|
||||
Reference in new issue
Block a user