Skip to content
This repository has been archived by the owner on Jan 24, 2019. It is now read-only.

Commit

Permalink
addPluginPrefix array support
Browse files Browse the repository at this point in the history
  • Loading branch information
devthejo committed Jan 12, 2016
1 parent ac4fabd commit 4da9d52
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions Templix.php
Original file line number Diff line number Diff line change
Expand Up @@ -84,6 +84,12 @@ function setPluginPrefix($prefixs){
$this->__pluginPrefix = (array)$prefixs;
}
function addPluginPrefix($prefix,$prepend=true){
if(is_array($prefix)){
foreach($prefix as $p){
$this->addPluginPrefix($p,$prepend);
}
return;
}
if($prepend)
array_unshift($this->__pluginPrefix,$prefix);
else
Expand Down

0 comments on commit 4da9d52

Please sign in to comment.