Version 4.7.13
This commit is contained in:
1 parent
fd22d99e69
commit
7124a02564
954 files changed
+29277
-59308
No files matched your search
@@ -104,15 +104,17 @@ class _Hook extends \IPS\Patterns\ActiveRecord
|
||||
|
||||
/* Work out the contents */
|
||||
$contents = str_replace(
|
||||
array(
|
||||
[
|
||||
'{abstract}',
|
||||
'{classname}',
|
||||
),
|
||||
array(
|
||||
'{extended_class}',
|
||||
],
|
||||
[
|
||||
$abstract,
|
||||
$classname,
|
||||
),
|
||||
\file_get_contents( \IPS\ROOT_PATH . '/applications/core/data/defaults/Hook.txt' )
|
||||
$hook->class
|
||||
],
|
||||
\file_get_contents( \IPS\ROOT_PATH . '/applications/core/data/defaults/Hook.txt' )
|
||||
);
|
||||
|
||||
\file_put_contents( $hookDir . "/{$hook->filename}.php", $contents );
|
||||
|
||||
Reference in new issue
Block a user